package com.a0soft.gphone.aTruffleHog.wnd.info;
/*
 * This program is free software; you can redistribute it and/or modify it
 * under the terms of the GNU General Public License as published by the
 * Free Software Foundation; either version 3, or (at your option) any
 * later version.
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * General Public License for more details.
 *
 * Copyright(C) 2011 
 *   Patrick Cheng <patrick.taiwan (at) gmail.com>
 *
 */

import android.view.View;
import android.widget.TextView;

import com.a0soft.gphone.aTruffleHog.R;

public class InfoItemViewWrapper {
    View _base;
    TextView _item_name;
    TextView _item_detail;
     
    public 
    InfoItemViewWrapper(View base) 
    {
        _base = base;
        _item_name = (TextView)_base.findViewById(R.id.i_name);
        _item_detail = (TextView)_base.findViewById(R.id.i_detail);
    }
        
    public void 
    setItemName(String item_name)
    {
        _item_name.setText(item_name);          
    }
        
    public void 
    setItemDetail(String item_detail) 
    {
        _item_detail.setText(item_detail);
    }
}
